import Request from '@/utils/request';


const API_PREFIX = '/business/api';
const PATH = '/report';


export class ReportApi {

  /**
   * 查看详情
   */
  static detail(params) {
    return Request.get(API_PREFIX + PATH + '/getDetail', params);
  }

  /**
   * 查看详情
   */
  static getFlow(params) {
    return Request.get(API_PREFIX + PATH + '/getFlow', params);
  }


  /**
   * 修改
   */
  static edit(params) {
    return Request.post(API_PREFIX + PATH + '/edit', params);
  }



  /**
   * 更新状态
   */
  static updateStatus(params) {
    return Request.post(API_PREFIX + PATH + '/updateStatus', params);
  }

  static findList(params) {
    return Request.get(API_PREFIX + PATH + '/findList', params);
  }


  static approve(params) {
    return Request.post(API_PREFIX + PATH + '/approve', params);
  }

  static confirmCode(params) {
    return Request.post(API_PREFIX + PATH + '/confirmCerCode', params);
  }

  static fixCerCode(params) {
    return Request.post(API_PREFIX + PATH + '/fixCerCode', params);
  }

  static fixSellCode(params) {
    return Request.post(API_PREFIX + PATH + '/fixSellCode', params);
  }

  static findPage(params) {
    return Request.get(API_PREFIX + PATH + '/findPage', params);
  }

  static findPageDone(params) {
    return Request.get(API_PREFIX + PATH + '/findPageDone', params);
  }
}
